﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core.Module.Interfaces.Common;
using Microsoft.Practices.Unity;
using Module.MailingSystem.Interfaces;

namespace Module.MailingSystem.Mail
{
    public class MailTypeRegistrator:ITypeRegistrator
    {
        public IUnityContainer RegisterTypes(IUnityContainer container)
        {
            container.RegisterType<IMailTemplate, MailTemplate>();
            container.RegisterType<IMailController, MailController>(new ContainerControlledLifetimeManager());
            return container;
        }
    }
}
